<?php
namespace  Admin\Controller;
use Think\Controller;
class AuthController extends Controller
{
    public function  _initialize()
    {
        if (is_null(session('blog_admin'))) {
            $this->error('你还没进入后台',U('Login/login'));
        }
    }
}